.class Lcom/qiniu/resumableio/ResumableIO$1;
.super Lcom/qiniu/auth/JSONObjectRet;
.source "ResumableIO.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/qiniu/resumableio/ResumableIO;->putAndClose(Ljava/lang/String;Lcom/qiniu/utils/InputStreamAt;Lcom/qiniu/resumableio/PutExtra;Lcom/qiniu/auth/JSONObjectRet;)I
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/qiniu/resumableio/ResumableIO;

.field final synthetic val$input:Lcom/qiniu/utils/InputStreamAt;

.field final synthetic val$ret:Lcom/qiniu/auth/JSONObjectRet;


# direct methods
.method constructor <init>(Lcom/qiniu/resumableio/ResumableIO;Lcom/qiniu/utils/InputStreamAt;Lcom/qiniu/auth/JSONObjectRet;)V
    .registers 4
    .param p1, "this$0"    # Lcom/qiniu/resumableio/ResumableIO;

    .prologue
    .line 40
    iput-object p1, p0, Lcom/qiniu/resumableio/ResumableIO$1;->this$0:Lcom/qiniu/resumableio/ResumableIO;

    iput-object p2, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$input:Lcom/qiniu/utils/InputStreamAt;

    iput-object p3, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    invoke-direct {p0}, Lcom/qiniu/auth/JSONObjectRet;-><init>()V

    return-void
.end method


# virtual methods
.method public onFailure(Ljava/lang/Exception;)V
    .registers 3
    .param p1, "ex"    # Ljava/lang/Exception;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$input:Lcom/qiniu/utils/InputStreamAt;

    invoke-virtual {v0}, Lcom/qiniu/utils/InputStreamAt;->close()V

    .line 60
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    invoke-virtual {v0, p1}, Lcom/qiniu/auth/JSONObjectRet;->onFailure(Ljava/lang/Exception;)V

    .line 61
    return-void
.end method

.method public onPause(Ljava/lang/Object;)V
    .registers 3
    .param p1, "tag"    # Ljava/lang/Object;

    .prologue
    .line 54
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    invoke-virtual {v0, p1}, Lcom/qiniu/auth/JSONObjectRet;->onPause(Ljava/lang/Object;)V

    .line 55
    return-void
.end method

.method public onProcess(JJ)V
    .registers 6
    .param p1, "current"    # J
    .param p3, "total"    # J

    .prologue
    .line 49
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/qiniu/auth/JSONObjectRet;->onProcess(JJ)V

    .line 50
    return-void
.end method

.method public onSuccess(Lorg/json/JSONObject;)V
    .registers 3
    .param p1, "obj"    # Lorg/json/JSONObject;

    .prologue
    .line 43
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$input:Lcom/qiniu/utils/InputStreamAt;

    invoke-virtual {v0}, Lcom/qiniu/utils/InputStreamAt;->close()V

    .line 44
    iget-object v0, p0, Lcom/qiniu/resumableio/ResumableIO$1;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    invoke-virtual {v0, p1}, Lcom/qiniu/auth/JSONObjectRet;->onSuccess(Lorg/json/JSONObject;)V

    .line 45
    return-void
.end method
